export function useTable() {
    const gridOptions = reactive<any>({
        align: 'center',
        border: true,
        columnConfig: {
            resizable: true,
        },
        columns: [
            { title: '序号', type: 'seq', width: 50 },
            { field: 'orderNumber', title: '订单编号', width: 180 },
            { field: 'createTime', title: '提交时间', width: 150 },
            { slots: { default: 'userName' }, title: '客户名称', width: 100 },
            { field: 'customPhone', title: '联系方式', width: 150 },
            { field: 'deposit', title: '诚意金', width: 100 },
            { slots: { default: 'paymentMethod' }, title: '支付方式', width: 100 },
            { field: 'fyxx', showOverflow: 'tooltip', title: '房源地址', width: 280 },
            { slots: { default: 'status' }, title: '订单状态', width: 100 },
            { field: 'cancellationTime', title: '订单取消时间', width: 150 },
            { slots: { default: 'shzt' }, title: '订单初审', width: 100 },
            { slots: { default: 'eszt' }, title: '订单复审', width: 100 },
            { field: 'customLogState', showOverflow: 'tooltip', title: '购房人变更备注', width: 150 },
            { fixed: 'right', slots: { default: 'operate' }, title: '操作', width: 140 },
        ],
        data: [],
        height: 530,
        loading: false,
        scrollX: {
            enabled: true,
            gt: 0,
        },
        showOverflow: false,
    })

    return { gridOptions }
}
